﻿<?xml version="1.0" encoding="utf-8" ?>
<Recipe xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  Name="SharePointApplication12"
  xmlns="http://schemas.microsoft.com/pag/gax-core"
  Bound="false">
  <xi:include href="../../../TypeAlias.xml" xmlns:xi="http://www.w3.org/2001/XInclude" />
  <Caption>SharePoint 2007 Application</Caption>
  <Description>Creates an application for deployment to Microsoft SharePoint 2007. The application contains an empty WSP solution project and a project for the deployment.</Description>
  <HostData>
    <Icon File="spsf.ico" />
    <spsf:MetaData
      Visible="true"
      BindingType="AnyElementReference"
      Enabled="true"
      ExcludeFromTests="true"
      CreateVSTemplate="false"
      Category="Projects" xmlns:spsf="http://www.spalmblogger.de">
      <spsf:Authors>
        <spsf:Author>Torsten Mandelkow</spsf:Author>
      </spsf:Authors>
      <spsf:VersionHistory>
        <spsf:VersionHistoryEntry>1.0 Initial Recipe</spsf:VersionHistoryEntry>
      </spsf:VersionHistory>
      <spsf:WebPageContent>
        <![CDATA[]]>
      </spsf:WebPageContent>
    </spsf:MetaData>
  </HostData>
  <Arguments>

    <Argument Name="RecipeName">
      <ValueProvider Type="Evaluator" Expression="SharePointApplication12" />
    </Argument>
    <Argument Name="SharePointVersion" Required="true">
      <ValueProvider Type="Evaluator" Expression="12" />
    </Argument>

    <xi:include href="BaseApplicationArguments.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Arguments/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

  </Arguments>
  <GatheringServiceData>
    <Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">
      <Pages>        
        <xi:include href="BaseApplicationPages.include"  parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-wizards) xpointer(/p:Pages/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />
        <Page Height="350">
          <Title>Initial WSP Solution</Title>
          <Help>
            Enter the settings for the initial WSP Solution
          </Help>
          <Fields>
            <Field ValueName="WSPProjectNameTemp" ReadOnly="true" Label="Final WSP Solution Filename">
              <Help>Optional String. Displays the final name of the wsp solution file</Help>
            </Field>
            <Field ValueName="WSPProjectName" Label="WSP Solution Name" InvalidValueMessage="Must be a valid .NET namespace identifier (e.g. it shouldn't contain spaces or special characters).">
              <Help>Required String. Specifies the name of the wsp solution. The final wsp solution name will be a combination of the application name (name of the VS.NET solution) and the wsp name.</Help>
            </Field>
            <Field ValueName="WSPDeploymentServerType" Label="Deployment Server Type">
              <Help>Optional String. Specifies the type of deployment server.</Help>
            </Field>
            <Field ValueName="WSPDeploymentTarget" Label="Deployment Target">
              <Help>Optional String. Specifies the deployment target.</Help>
            </Field>
            <Field ValueName="WSPResetServer" Label="Reset Webserver">
              <Help>Optional Boolean. If checked the option "ResetWebServer" in the solution manifest is set to TRUE.</Help>
            </Field>
          </Fields>
        </Page>
      </Pages>
    </Wizard>
  </GatheringServiceData>
  <Actions CoordinatorServiceType="ConditionalCoordinator">

    <Action Name="UnfoldDeploymentProjectTemplate" ProjectName="ApplicationDeployment" Type="ExtendedUnfoldTemplateAction"
     Template="Solutions\Projects\Deploy\Root.vstemplate">
    </Action>
    
    <xi:include href="BaseApplicationActions.include" parse="xml" xpointer="xmlns(p=http://schemas.microsoft.com/pag/gax-core) xpointer(/p:Actions/*)" xmlns:xi="http://www.w3.org/2001/XInclude" />

  </Actions>
</Recipe>